﻿<!--#INCLUDE FILE="config.asp"-->

<%
if(Session("SalesAccessLevel") <> 4 ) then
	Response.Redirect("default.asp")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../styles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- DATE PICKER SCRIPT -->
<link type="text/css" href="../css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript">
	// ***** Session Timeout Warning and Redirect mReschke 2010-09-29 ***** //
function InitSessionTimer() {
    /* mReschke 2010-09-29 */
    warn_sec = <%=session.timeout%> * 60 * 1000;   	//Warning time in milliseconds
    timeout_sec = <%=session.timeout%> * 60 * 1000 + 60000;          //Actual timeout in milliseconds
    show_warning = true;
    epoch = new Date().getTime();
    CheckSessionStatus();
}
InitSessionTimer();
function CheckSessionStatus() {
    /* mReschke 2010-09-29 */
 
    //Check for session warning
    epoch2 = new Date().getTime();
     if (epoch2 > epoch + timeout_sec) {
        alert("Your session has timed out.");
        window.location.href = 'default.asp?msg=invalid_out';
    } else {
        down = setTimeout("CheckSessionStatus();", 2000);
    }
}
</script>
<script>
	$(function() {
		$( "#arrival1" ).datepicker();
		$( "#departure1" ).datepicker();
		$( "#arrival2" ).datepicker();
		$( "#departure2" ).datepicker();
	});
	</script>
  <!-- END DATE PICKER SCRIPT -->

<script> 
  //$(document).ready(function(){
  //$('.dashboad_wrapper tr:nth-child(odd)').addClass('alternate');
//});
</script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
    $('#list_table tr:nth-child(2n+1)').addClass('alternate');
});
</script>

  

<title>Vendedor/Sales Person View :: CostaBaja</title>

</head>

<body>
<%
	if(request("sId") <> "") then
		SaleID = request("sId")
	else 
		SaleID = 0
	end if
	
	strQuery = "SELECT TOP 1 * FROM Sales WHERE Sales.SaleID ="& SaleID
	
	set objConnect1 = server.createObject("ADODB.Connection")   

	objConnect1.Open conStr

	set TblTemp1 = server.createobject("Adodb.Recordset")
		
		TblTemp1.Open strQuery, objConnect1
		
	If not TblTemp1.EOF Then
			SaleID = TblTemp1("SaleID")
			FirstName = TblTemp1("FirstName")
			LastName = TblTemp1("LastName")
			PhoneNumber = TblTemp1("PhoneNumber")
			CellNumber = TblTemp1("CellNumber")
			Email = TblTemp1("Email")
			EmailPassword = TblTemp1("EmailPassword")
			Active = TblTemp1("Active")
			If(EmailPassword <> "") Then
				EmailPassword = "********"
			End IF
			UserName = TblTemp1("UserName")
			Password = TblTemp1("Password")
			If(Password <> "") Then
				Password = "********"
			End IF
			SalesAgent = TblTemp1("SalesAgent")
	end if 
%>
<div id="main_wrapper">
    	<div class="main_wrapper_margin">
        	
            <div class="admin_top_menu">
            <!--#INCLUDE FILE="sales_people_menu.asp"--> 
           	</div><!-- END admin_top_menu -->
             
			<h1>Vendedor/Sales Person View</h1>
            <div class="clear"></div>
            
            
            
            <div class="dashboad_wrapper">
              
                   <fieldset>
           	<legend>Informacion Vendedor/Sales Person Info</legend>
              <form>
              
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <h6>Nombre/First Name:</h6>
   <p><%=FirstName%></p>
    </td>
    <td>
       <h6>Apellido/Last Name:</h6>
<p><%=LastName%></p>
    </td>
  </tr>
  
    <tr>
    <td>
<h6>Numero Telefonico/Phone Number:</h6>
<p><%=PhoneNumber%></p>
    </td>
    <td>
<h6>Numero Mobil/Cell:</h6>
<p><%=CellNumber%></p>
    </td>
  </tr>
  
  <tr>
    <td>
    <h6>Email :</h6>
<p><a href="mailto:<%=Email%>"><%=Email%></a></p>
</td>

    <td>
  <h6>Email Password:</h6>
<p><%=EmailPassword%></p>   
    </td>
  </tr>
  <tr>
    <td>
        <h6>Nombre Usuario/User Name:</h6>
        <p><%=UserName%><p>
        </td>
    <td>
  <h6>Password:</h6>
<p><%=Password%></p>   
    </td>
  </tr>
  <tr>
    <td>
        <h6>Agente de Ventas/Sales Agent:</h6>
        <p><%=SalesAgent%><p>
        </td>
  </tr>
  <!--<tr>
	<td>
	<label>Remove and Transfer: </label><br/>
	<select name="active" id="active" disabled>
		<option value="1" <%if Active then %> selected <%end if%>>Active</option>
		<option value="0" <%if not Active then %> selected <%end if%>>Inactive</option>
	</select>
	</td>
  </tr> -->
  <tr>
    <td colspan="2">
    <br />
    <h3><a href="sales-edit-salesperson.asp?sID=<%=SaleID%>">Editar Vendedor/Edit Sales Person</a></h3>
   
<h3><a href="sales-view-prospects-per-salesperson.asp?sID=<%=SaleID%>">Ver Prospectos/View Prospects</a></h3>
    </td>
 
  </tr>
</table>
</form>
</fieldset>
            </div><!-- .dashboad_wrapper -->
                        
    	</div><!-- END .main_wrapper_margin -->
        
	</div><!-- END #main_wrapper -->

         <!-- FOOTER -->
         
         <!--#INCLUDE file="sales_footer.asp"-->
         
         <!-- END FOOTER -->   

</body>
</html>
